<script setup lang="js">
import {ref} from 'vue';
import IfStudy from './IfStudy.vue';
import Study_for from './Study_for.vue';
import Demo_for from './Demo_for.vue';

let name2=ref("张三");
name2.value="巫安琦";

let login=()=>{
  alert(name2.value)
}

</script>
<template>
 <div class="main">
  <h1>你好{{ name2 }}</h1>
  <input v-model="name2"></input>
  <input :value="name2"></input>
  <button v-on:click="login">登录</button>
  <button @click="login">登录</button>
 </div>
 <!-- <IfStudy></IfStudy> -->
 <!-- <Study_for></Study_for> -->
  <Demo_for></Demo_for>
</template>

<style scoped></style>
